package com.hiwhitley.easy.day10;

/**
 * Created by hiwhitley on 2016/8/15.
 */
public class HammingWeight {
    public static int hammingWeight(int n) {
        return Integer.bitCount(n);
    }

    public static void main(String[] args) {
        System.out.println(hammingWeight(00000000000000000000000000001011));
    }
}
